export interface ConvertResponse {
  data: Blob
}

export interface ConvertParams {
  video: File
  quality: 'high' | 'medium' | 'low'
  start_time: number
  end_time: number
}

export const videoApi = {
  convertToGif: async (
    params: ConvertParams,
    onUploadProgress?: (progressEvent: any) => void
  ) => {
    // ... 其他代码保持不变 ...
    const response = await request.post<Blob>('/convert', formData, {
      // ... 配置保持不变 ...
    })
    return response
  },
} 